#!/opt/php/bin/php
<?php
require_once('TVB/mytvplus/portal_service/common/bootstrap.php');

Model::$dbo['portal_check_video_r'] = CommonUtils::getDbConn(0, 'portal_check_video');
Model::$dbo['portal_check_video_w'] = CommonUtils::getDbConn(1, 'portal_check_video');

for ($i=1; $i<=5; $i++) 
{
    $obj = array(
        'id' => $i, 
        'programme_id' => $i,  
        'type' => 'programme', 
        'action' => 'publish', 
        'relational_id' => $i,
        'push_time' => date('Y-m-d H:i:s'), 
    );
    $task_list = new task_list;
    $task_list->set((object) $obj);
    $task_list->insert($task_list);
}
